import type { RouteRecordRaw } from 'vue-router'

export default [
  {
    path: 'spotCheck',
    name: 'SpotCheck',
    meta: {
      title: '抽查检查'
    },
    redirect: {
      name: 'QualifiedSpotChecks'
    },
    component: () => import('@/views/spotCheck/spotCheck/index.vue'),
    children: [
      {
        path: 'qualifiedSpotChecks',
        name: 'QualifiedSpotChecks',
        meta: {
          title: '合格组织抽查'
        },
        component: () =>
          import(
            '@/views/spotCheck/spotCheck/page/qualifiedSpotChecks/qualifiedSpotChecks.vue'
          )
      },
      {
        path: 'spotCheckForAnomalies',
        name: 'SpotCheckForAnomalies',
        meta: {
          title: '风险异常组织抽查'
        },
        component: () =>
          import(
            '@/views/spotCheck/spotCheck/page/spotCheckForAnomalies/spotCheckForAnomalies.vue'
          )
      },
      {
        path: 'inspectionManagement',
        name: 'InspectionManagement',
        meta: {
          title: '检查管理'
        },
        component: () =>
          import(
            '@/views/spotCheck/spotCheck/page/inspectionManagement/inspectionManagement.vue'
          )
      }
    ]
  },
  {
    path: 'riskWarning',
    name: 'RiskWarning',
    meta: {
      title: '风险预警'
    },
    component: () => import('@/views/spotCheck/riskWarning/riskWarning.vue')
  },
  {
    path: 'spotCheckView',
    name: 'SpotCheckView',
    meta: {
      title: '查看'
    },
    component: () => import('@/views/spotCheck/spotCheck/view.vue')
  },
  {
    path: 'problemEntry',
    name: 'spotCheckProblemEntry',
    meta: {
      title: '问题录入'
    },
    component: () =>
      import('@/views/spotCheck/spotCheck/problemEntry/problemEntry.vue')
  },
  {
    path: 'problemEntryView',
    name: 'spotCheckProblemEntryView',
    meta: {
      title: '查看'
    },
    component: () => import('@/views/spotCheck/spotCheck/problemEntry/view.vue')
  }
] as RouteRecordRaw[]
